Cluster::CalcCols

Section: ET++ method description (n)
Updated: automatically Thu Mar 21 20:11:29 1991
Index Return to Main Contents
 

NAME

Cluster::CalcCols - instance method  

TEMPLATE

columns = short CalcCols()  

SPECIFIERS

protected virtual  

DESCRIPTION

CalcCols is called by the method CalcDimensions and computes the number of columns of this based on the instvar align and the number of inner VObjects (see method CompositeVObject::Size; also referred to as "size" here). The number of rows then automatically results from columns (see method CalcDimensions).
If only horizontal align flags are set, then columns is set to 1. If only vertical align flags are set, then columns is equal to the size. If both horizontal and vertical align flags are set, then the Cluster arranges the VObjects in a square layout and therefore columns is set to the square root of the size.
By overriding CalcCols it is possible to choose a different calculation or force a specific number of columns. This is done, for example, by the method Form::CalcCols. Method is rarely overridden.  

ARGUMENTS

none

 

RETURN ARGUMENT

short columns

the computed number of columns of this
. See instvar cols.
 

CATEGORIES

overrider interface, implementation

 

FIRST DEFINITION

class Cluster  

FILES

implementation:
Cluster.C


 

Index

NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FIRST DEFINITION
FILES

This document was created by man2html, using the manual pages.
Time: 00:40:31 GMT, March 30, 2022